package org.korosoft.rusalad.syncnrun.command;

/**
 * Syncnrun RPC answer for unexpected failure. May be sent in response to any command.
 *
 * @author Dmitry Korotkov
 * @since 1.0
 */
public final class FailAnswer implements Answer {
    public final Throwable exception;

    public FailAnswer(Throwable exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "Failure: " + exception.getMessage();
    }
}
